-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintenance for the SANSTubeCalibration algorithm #38773
base: main
Are you sure you want to change the base?
Maintenance for the SANSTubeCalibration algorithm #38773
Conversation
05008ec
to
9b79293
Compare
@@ -321,15 +320,15 @@ def PyExec(self): | |||
self._log_tube_calibration_issues() | |||
self._notify_tube_cvalue_status(cvalues) | |||
|
|||
def _match_workspaces_to_strip_positions(self, ws_list): | |||
def _match_workspaces_to_strip_positions(self, ws_list) -> dict[int, any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't want to import MatrixWorkspace
, perhaps for readability it would be good to use a stringized type hint?
Regardless, I think this should be Any
, from from typing import Any
. I think any
here might be the built-in function: https://docs.python.org/3/library/functions.html#any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, thanks, I thought the any
didn't seem quite right. I recall trying the stringized type hint at the time but can't recall now why I didn't go for it, will take another look.
9b79293
to
256b0dc
Compare
Description of work
Summary of work
Address some of the maintenance items on the linked issue for the SANS tube calibration algorithms.
Refs #35982.
Further detail of work
MatrixWorkspace
, for example. Obviously I'm happy to change this if people prefer, though.FlatTopPeak
function. I'm afraid this was a function that I didn't write so I have only been able to add very basic documentation, however this seems consistent with several of our fitting functions.To test:
All tests should pass. As this is just maintenance work, I don't think it needs a manual test.
This does not require release notes because there are no user facing changes.
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.